/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-08-13 17:30:23
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';

//  查询跟进任务定义信息
export const queryTrackingTask = params => axios.get(`${SERVER.CYXDMS_CLUE}/customerManage/trackingtask` ,{params});
//  跟进任务定义跳转编辑页面
export const queryTrackingTaskByid = id => axios.get(`${SERVER.CYXDMS_CLUE}/customerManage/trackingtask/${id}`, { id: Number(id) });
//  跟进任务定义新增保存
export const addTrackingTask = params => axios.post(`${SERVER.CYXDMS_CLUE}/customerManage/trackingtask`, params);
//  跟进任务定义编辑保存
export const modifyTrackingTask = (params,id) => axios.put(`${SERVER.CYXDMS_CLUE}/customerManage/trackingtask/${id}`, params);
